import React from 'react';
import ReactDOM from 'react-dom/client';
import {RoleProvider} from "./provider/tsx";

// 导入 RouterProvider 和 createBrowserRouter 
import { RouterProvider, createHashRouter } from "react-router-dom";
import router from './router';

ReactDOM.createRoot(document.getElementById('root')!).render(
    <RoleProvider>
        {/* <React.StrictMode> */}
                <RouterProvider router={createHashRouter (router)} />
        {/* </React.StrictMode> */}
       
    </RoleProvider>
  );
